// 删除我的喜欢中的商品数据
function deletes(obj) {
    layer.confirm('您确定要删除吗？', {
        btn: ['删除','取消'] //按钮
    }, function(){
        let sf = obj.parentElement.parentElement;
        sf.setAttribute("index",true);
        let box_lt = document.getElementById("box-lt");
        let list = box_lt.children;
        // console.log(list.length)
        for(let i = 0; i < list.length; i++){
            if(list[i].getAttribute("index") == "true"){
                let id = parseInt(document.getElementsByName("cartId")[i].value);
                window.location = "/mi/personal_center/deleteMyLike?productId="+id;
            }
        }
    }, function(){
    });
}